<?php 
	
	include_once("./public/common.php");
	include_once("./public/verify.php");
	$newVer=urldecode(getGETPara('newVer'));
	
	$verNewVer=urldecode(getGETPara('verNewVer'));
	$newUid=urldecode(getGETPara('newUid'));
	$uid = specialDecode($newUid,$newVer);
	if(simpleVerify($newVer,$verNewVer) == false){
		return "404";
	}
?>
<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
	<?php //TODO:change icon ?>
    <link rel="icon" href="./public/pic/pHctrlico.ico">

    <title>device Board</title>

    <!-- Bootstrap core CSS -->
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../bootstrap/dashboard.css" rel="stylesheet">
	<link href="../bootstrap/dMsignin.css" rel="stylesheet">
    

    
  </head>


   
  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">navigation</span>
            <span class="icon-bar"></span>
            
          </button>
          <a class="navbar-brand" href="./index.php"><-- return </a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
		<?php //TODO:?? ?>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">DeviceBoard</a></li>
          <!--  <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
			-->
          </ul>
          <form class="navbar-form navbar-right">
           <!-- <input class="form-control" placeholder="Search..." type="text"> -->
          </form>
        </div>
      </div>
    </nav>
	
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
            
            
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="../index.php">Log out</a></li>
           
          </ul>
          
        </div>
	
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header" ><a name="Device_board">user board</a></h1>
		<div class="container">

        <form class="form-signin" method="post" action="./dealWithPwd.php">
            <h2 class="form-signin-heading">change Password</h2>
            <input type="hidden" name="newVer" value="<?php echo urlencode($newVer);?>" ></input>
			<input type="hidden" name="verNewVer" value="<?php echo urlencode($verNewVer);?>" ></input>
            <input type="hidden" name="newUid" value="<?php echo $newUid;?>" ></input>
            
            
			<label for="inputPassword" class="sr-only">password</label>
			<input type="password" name="password" id="inputPassword" class="form-control" placeholder="new password" value="" required autofocus>
            
            
            <label for="inputPassword2" class="sr-only">password2</label>
			<input type="password" name="passwordAgain" id="inputPassword2" class="form-control" placeholder="new password again" value="" required autofocus>
            
			

			<button name="change password" class="btn btn-lg btn-primary btn-block" type="submit" value="change">Submit</button>


            
			<p>&nbsp;</p>
	

			
			
            
			
        </form>


		</div> <!-- /container -->



          </div>
        </div>
     
  

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../bootstrap/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="../bootstrap/holder.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../bootstrap/ie10-viewport-bug-workaround.js"></script>
  

<svg style="visibility: hidden; position: absolute; top: -100%; left: -100%;" preserveAspectRatio="none" viewBox="0 0 200 200" height="200" width="200"><defs></defs><text style="font-weight:bold;font-size:10pt;font-family:Arial, Helvetica, Open Sans, sans-serif;dominant-baseline:middle" y="10" x="0">200x200</text></svg></body></html>